<%-- 
    Document   : performance
    Created on : Apr 6, 2011, 3:37:32 PM
    Author     : Dine
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="sjg" uri="/struts-jquery-grid-tags"%>

<html>
    <head>
        <sj:head jqueryui="true" jquerytheme="south-street" compressed="false"/>
        <jsp:include page="WEB-INF/fragments/globalHead.html"/>
        <title>Cashmate <s:property value="#session.branch.branchname"/> - Monthly Performance</title>
        <style type="text/css">
            div#formResult > p{
                font-size: 12px;
            }
            div#theContent{
                width:990px;
                overflow:auto;
                margin:auto;
                height:500px;
            }
            div#gridOptsContainer{
                width:800px;
                margin:auto;
                text-align: center;
            }
            div.ui-jqgrid{
                margin:auto;
            }
            span.ui-jqgrid-title{
                font-size: 20px;
                text-align: center;
                margin: auto;
            }
            .ui-jqgrid-btable{
                font-size:12px !important;
            }
            .ui-jqgrid-htable{
                font-size:14px !important;
            }
            div.ui-jqdialog{
                max-height: 400px !important;
                width: 450px !important;
                overflow:auto !important; 
            }
            a#exportButton{
                background-color: #459e00;
                border: 1px solid #327e04;
                font-weight: bold;
                color: white;
                padding:6px;
                font-size: 14px;
            }
            a#exportButton:hover{
                cursor: pointer;
            }
        </style> <!--performance.jsp css-->
        <script type="text/javascript">
            
            $.subscribe("cancelmonthSubmitClick",function(event,data){
                $('#monthPerfDialog').dialog('close');
            });

            function formatPercent(cellvalue, options, rowObject){
                return cellvalue+"%";
            }
            
            $.subscribe('monthSelectComplete', function(event,data) {
                var s = $("#monthSelect").attr("value");
                if(s == "-1"){
                    $('div#formResult').removeClass("ui-state-highlight");
                    $('div#formResult').addClass("ui-state-error");
                    $('div#formResult').html(error('Sorry.There are <strong>no available Daily Cash Collection Report(s)</strong> to compute.'));
                    $('#monthSubmitButton').button( "option", "disabled", true );
                }
            });
        </script> <!--performance.jsp script-->
    </head>
    <body>
        <!--  JAVASCRIPT/SESSION FILTER      -->
        <jsp:include page="WEB-INF/fragments/filters.jsp"/>

        <!--  PRIVILEGE FILTER      -->
        <s:set name="status">${param.status}</s:set>
        <s:if test="%{#session.branch.branchid == 1}">
            <s:action name="query-privilege2" var="privilege1" executeResult="false">
                <s:param name="pagename" value="monthperformance.jsp"/>
                <s:param name="moduleid" value="13"/>
            </s:action>
            <s:if test='%{!#privilege1.viewable && #status != "nonviewable"}'>
                <script type="text/javascript">
                    window.location.href = "monthperformance.jsp?status="+escape("nonviewable");
                </script>
            </s:if>
            <s:elseif test="%{!#privilege1.viewable && #parameters.status == null}">
                <script type="text/javascript">
                    window.location.href = "monthperformance.jsp?status="+escape("nonviewable");
                </script>
            </s:elseif>
        </s:if>
        <s:else>
            <s:action name="query-privilege2" var="privilege2" executeResult="false">
                <s:param name="pagename" value="monthperformance.jsp"/>
                <s:param name="moduleid" value="11"/>
            </s:action>
            <s:if test='%{!#privilege2.viewable && #status != "nonviewable"}'>
                <script type="text/javascript">
                    window.location.href = "monthperformance.jsp?status="+escape("nonviewable");
                </script>
            </s:if>
            <s:elseif test="%{!#privilege2.viewable && #parameters.status == null}">
                <script type="text/javascript">
                    window.location.href = "monthperformance.jsp?status="+escape("nonviewable");
                </script>
            </s:elseif>
        </s:else>

        <!--  BRANCH FILTER      -->
        <s:if test="%{#session.branch.branchid != 1 && #parameters.branch != null}">
            <s:set name="b" value="%{#session.branch.branchid}"/>
            <s:set name="br">${param.branch}</s:set>
            <s:if test="%{#br != #b}">
                <script type="text/javascript">
                    window.location.href = "monthperformance.jsp?status="+escape("notbranch");
                </script>
            </s:if>
        </s:if>

        <s:div id="bodyContainer">
            <s:div id="logoContainer" cssClass="ui-widget-content ui-corner-all">
                <s:include value="WEB-INF/fragments/banner.jsp">
                    <s:param name="branch" value="#session.branch.branchname" />
                </s:include>
            </s:div>
            <jsp:include page="WEB-INF/fragments/top.jsp"/>
            <jsp:include page="WEB-INF/fragments/mainMenu.jsp?menu=Reports"/>
            <jsp:include page="WEB-INF/fragments/left.jsp?type=report"/>
            <s:div id="contentContainer" cssClass="ui-widget-content ui-corner-all">
                <h1 id="contentHeader" style="text-align:center;" class="ui-state-default ui-corner-all"><span id="level1">Monthly Performance</span></h1>
                <s:div id="theContent">
                    <s:if test='%{#status == "nonviewable"}'>
                        <s:include value="WEB-INF/error/unauthorized.html"/>
                    </s:if>
                    <s:else>
                        <s:if test='%{#status == "notbranch"}'>
                            <h3 style="text-align: center;">Sorry. You don't belong to this branch.</h3>
                        </s:if>
                        <sj:dialog autoOpen="false" closeOnEscape="false" modal="true" id="monthPerfDialog" title="Choose Monthly Performance Rating" width="500" showEffect="slide" openTopics="dialogopen" hideEffect="none">
                            <div id="formResult" class="ui-state-highlight ui-corner-all" style="margin-top: 20px; padding: 0 .7em;">
                                <p style="text-align:center;"><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span>
                                    Please <strong>select a month to display monthly performance rating.</strong>
                                </p>
                            </div>
                            <s:form action="choose-perf" cssStyle="margin:auto;" id="choosePerf">
                                <s:hidden name="type" value="month"/>
                                <s:url id="monthurl" action="select-month"/>
                                <sj:select
                                    onCompleteTopics="monthSelectComplete"
                                    label="Month"
                                    href="%{monthurl}"
                                    id="monthSelect"
                                    name="cutoffDate"
                                    list="monthMap"
                                    />
                            </s:form>
                            <hr />
                            <sj:a cssClass="ui-state-default" id="monthCancelButton"
                                  cssStyle="float:right;font-size:14px;"
                                  button="true"
                                  onClickTopics="cancelmonthSubmitClick">
                                Cancel</sj:a>
                            <sj:submit cssClass="ui-state-default" id="monthSubmitButton"
                                       cssStyle="float:right;font-size:14px;"
                                       value="Submit"
                                       button="true"
                                       effect="highlight"
                                       formIds="choosePerf"
                                       effectDuration="300"/>
                        </sj:dialog>

                        <s:div id="gridOptsContainer">
                            <s:if test="%{#parameters.branch != null && #parameters.month !=null && #parameters.year !=null}">
                                <%--  
                                <sj:submit button="true" 
                                        cssStyle="font-size:14px;" 
                                        disabled="true"
                                        id="monthPerfGrid_search" 
                                        onClickTopics="searchMonthGrid"
                                        value="Search Monthly Performance"/>

                                <sj:submit button="true" 
                                           cssStyle="font-size:14px;" 
                                           disabled="true"
                                           id="weekPerfGrid_showhide" 
                                           onClickTopics="showHideCols"
                                           value="Show/Hide Columns"/>
                                --%>
                                <s:url action="export-excel" id="exportLink"><s:param name="type">month</s:param></s:url>
                                <s:a cssClass="ui-corner-all" id="exportButton" href="%{exportLink}" >Export</s:a>

                            </s:if>

                            <sj:submit button="true"
                                       cssStyle="font-size:14px;" 
                                       openDialog="monthPerfDialog"
                                       value="Choose"
                                       />
                        </s:div>
                        <hr />

                        <s:if test="%{#parameters.month != null && #parameters.year !=null && #parameters.branch !=null}">
                            <s:bean name="com.cashmate.utilities.DCCRDate" var="date">
                                <s:param name="date" value="%{#parameters.month}"/>
                            </s:bean>
                            <s:action name="select-branches" executeResult="false" var="br">
                                <s:param name="forPerf" value="%{#parameters.branch}"/>
                            </s:action>
                            <s:url action="grid-monthperf" id="remoteurlforrtng" escapeAmp="false">
                                <s:param name="month" value="%{#parameters.month}"/>
                                <s:param name="year" value="%{#parameters.year}"/>
                                <s:param name="branchid" value="%{#parameters.branch}"/>
                                <s:param name="type">RTNG</s:param>
                            </s:url>
                            <sjg:grid
                                id="rtngGrid"
                                caption="%{#br.branchname} Performance Rating for %{#date.monthname} %{#parameters.year}"
                                dataType="json"
                                href="%{remoteurlforrtng}"
                                gridModel="gridModel"
                                pagerButtons="true"
                                pagerInput="true"
                                scroll="true"
                                rowNum="-1"
                                loadingText="Requesting Data..."
                                width="930"
                                shrinkToFit="true"
                                pager="true"
                                hoverrows="true"
                                rownumbers="true"
                                autoencode="true"
                                viewrecords="true"
                                navigator="true"
                                navigatorAdd="false"
                                navigatorDelete="false"
                                navigatorEdit="false"
                                navigatorSearch="true"
                                navigatorView="true"
                                >

                                <sjg:gridColumn name="areacode"
                                                index="areacode"
                                                title="Area"
                                                searchoptions="{sopt:['eq']}"
                                                sortable="true"
                                                search="true"
                                                align="center"
                                                />
                                <sjg:gridColumn name="firstcut"
                                                index="firstcut"
                                                title="%{#date.monthname} 1-6"
                                                sortable="true"
                                                formatter="formatPercent"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="secondcut"
                                                index="secondcut"
                                                title="%{#date.monthname} 7-12"
                                                sortable="true"
                                                formatter="formatPercent"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="thirdcut"
                                                index="thirdcut"
                                                title="%{#date.monthname} 13-18"
                                                sortable="true"
                                                formatter="formatPercent"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fourthcut"
                                                index="fourthcut"
                                                title="%{#date.monthname} 19-24"
                                                sortable="true"
                                                formatter="formatPercent"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fifthcut"
                                                index="fifthcut"
                                                title="%{#date.monthname} 25-END"
                                                sortable="true"
                                                formatter="formatPercent"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="totalrate"
                                                index="totalrate"
                                                title="Total"
                                                sortable="true"
                                                formatter="formatPercent"
                                                search="false"
                                                align="center"
                                                />
                            </sjg:grid>
                            <hr />
                            <s:url action="grid-monthperf" id="remoteurlfordue" escapeAmp="false">
                                <s:param name="month" value="%{#parameters.month}"/>
                                <s:param name="year" value="%{#parameters.year}"/>
                                <s:param name="branchid" value="%{#parameters.branch}"/>
                                <s:param name="type">DUE</s:param>
                            </s:url>

                            <sjg:grid
                                id="cutoffdueGrid"
                                caption="%{#br.branchname} Cutoff Due Rating for %{#date.monthname} %{#parameters.year}"
                                dataType="json"
                                href="%{remoteurlfordue}"
                                gridModel="gridModel"
                                pagerButtons="true"
                                pagerInput="true"
                                rowNum="-1"
                                scroll="true"
                                loadingText="Requesting Data..."
                                width="930"
                                shrinkToFit="true"
                                pager="true"
                                hoverrows="true"
                                rownumbers="true"
                                autoencode="true"
                                viewrecords="true"
                                navigator="true"
                                navigatorAdd="false"
                                navigatorDelete="false"
                                navigatorEdit="false"
                                navigatorSearch="true"
                                navigatorView="true"
                                >

                                <sjg:gridColumn name="areacode"
                                                index="areacode"
                                                title="Area"
                                                sortable="true"
                                                search="true"
                                                searchoptions="{sopt:['eq']}"
                                                align="center"
                                                />
                                <sjg:gridColumn name="firstcut"
                                                index="firstcut"
                                                title="%{#date.monthname} 1-6"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="secondcut"
                                                index="secondcut"
                                                title="%{#date.monthname} 7-12"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="thirdcut"
                                                index="thirdcut"
                                                title="%{#date.monthname} 13-18"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fourthcut"
                                                index="fourthcut"
                                                title="%{#date.monthname} 19-24"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fifthcut"
                                                index="fifthcut"
                                                title="%{#date.monthname} 25-END"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="totalperarea"
                                                index="totalperarea"
                                                title="Total"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />
                            </sjg:grid>
                            <hr />
                            <s:url action="grid-monthperf" id="remoteurlfortcc" escapeAmp="false">
                                <s:param name="month" value="%{#parameters.month}"/>
                                <s:param name="year" value="%{#parameters.year}"/>
                                <s:param name="branchid" value="%{#parameters.branch}"/>
                                <s:param name="type">TCC</s:param>
                            </s:url>
                            <sjg:grid
                                id="tccGrid"
                                caption="%{#br.branchname} Total CutOff Collection Rating for %{#date.monthname} %{#parameters.year}"
                                dataType="json"
                                href="%{remoteurlfortcc}"
                                gridModel="gridModel"
                                pagerButtons="true"
                                pagerInput="true"
                                scroll="true"
                                rowNum="-1"
                                loadingText="Requesting Data..."
                                width="930"
                                shrinkToFit="true"
                                pager="true"
                                hoverrows="true"
                                rownumbers="true"
                                autoencode="true"
                                viewrecords="true"
                                navigator="true"
                                navigatorAdd="false"
                                navigatorDelete="false"
                                navigatorEdit="false"
                                navigatorSearch="true"
                                navigatorView="true"
                                >

                                <sjg:gridColumn name="areacode"
                                                index="areacode"
                                                title="Area"
                                                sortable="true"
                                                search="true"
                                                searchoptions="{sopt:['eq']}"
                                                align="center"
                                                />
                                <sjg:gridColumn name="firstcut"
                                                index="firstcut"
                                                title="%{#date.monthname} 1-6"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="secondcut"
                                                index="secondcut"
                                                title="%{#date.monthname} 7-12"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="thirdcut"
                                                index="thirdcut"
                                                title="%{#date.monthname} 13-18"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fourthcut"
                                                index="fourthcut"
                                                title="%{#date.monthname} 19-24"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fifthcut"
                                                index="fifthcut"
                                                title="%{#date.monthname} 25-END"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="totalperarea"
                                                index="totalperarea"
                                                title="Total"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />
                            </sjg:grid>
                            <hr />
                            <s:url action="grid-monthperf" id="remoteurlfortp" escapeAmp="false">
                                <s:param name="month" value="%{#parameters.month}"/>
                                <s:param name="year" value="%{#parameters.year}"/>
                                <s:param name="branchid" value="%{#parameters.branch}"/>
                                <s:param name="type">TP</s:param>
                            </s:url>
                            <sjg:grid
                                id="tpGrid"
                                caption="%{#br.branchname} Total Payment Rating for %{#date.monthname} %{#parameters.year}"
                                dataType="json"
                                href="%{remoteurlfortp}"
                                gridModel="gridModel"
                                pagerButtons="true"
                                pagerInput="true"
                                scroll="true"
                                rowNum="-1"
                                loadingText="Requesting Data..."
                                width="930"
                                shrinkToFit="true"
                                pager="true"
                                hoverrows="true"
                                rownumbers="true"
                                autoencode="true"
                                viewrecords="true"
                                navigator="true"
                                navigatorAdd="false"
                                navigatorDelete="false"
                                navigatorEdit="false"
                                navigatorSearch="true"
                                navigatorView="true"
                                >

                                <sjg:gridColumn name="areacode"
                                                index="areacode"
                                                title="Area"
                                                searchoptions="{sopt:['eq']}"
                                                sortable="true"
                                                search="true"
                                                align="center"
                                                />
                                <sjg:gridColumn name="firstcut"
                                                index="firstcut"
                                                title="%{#date.monthname} 1-6"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="secondcut"
                                                index="secondcut"
                                                title="%{#date.monthname} 7-12"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="thirdcut"
                                                index="thirdcut"
                                                title="%{#date.monthname} 13-18"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fourthcut"
                                                index="fourthcut"
                                                title="%{#date.monthname} 19-24"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fifthcut"
                                                index="fifthcut"
                                                title="%{#date.monthname} 25-END"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="totalperarea"
                                                index="totalperarea"
                                                title="Total"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />
                            </sjg:grid>
                            <hr/>
                            <s:url action="grid-monthperf" id="remoteurlfordpo" escapeAmp="false">
                                <s:param name="month" value="%{#parameters.month}"/>
                                <s:param name="year" value="%{#parameters.year}"/>
                                <s:param name="branchid" value="%{#parameters.branch}"/>
                                <s:param name="type">DPO</s:param>
                            </s:url>
                            <sjg:grid
                                id="dpoGrid"
                                caption="%{#br.branchname} Due + OD Rating for %{#date.monthname} %{#parameters.year}"
                                dataType="json"
                                href="%{remoteurlfordpo}"
                                gridModel="gridModel"
                                pagerButtons="true"
                                pagerInput="true"
                                scroll="true"
                                rowNum="-1"
                                loadingText="Requesting Data..."
                                width="930"
                                shrinkToFit="true"
                                pager="true"
                                hoverrows="true"
                                rownumbers="true"
                                autoencode="true"
                                viewrecords="true"
                                navigator="true"
                                navigatorAdd="false"
                                navigatorDelete="false"
                                navigatorEdit="false"
                                navigatorSearch="true"
                                navigatorView="true"
                                >

                                <sjg:gridColumn name="areacode"
                                                index="areacode"
                                                title="Area"
                                                searchoptions="{sopt:['eq']}"
                                                sortable="true"
                                                search="true"
                                                align="center"
                                                />
                                <sjg:gridColumn name="firstcut"
                                                index="firstcut"
                                                title="%{#date.monthname} 1-6"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="secondcut"
                                                index="secondcut"
                                                title="%{#date.monthname} 7-12"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="thirdcut"
                                                index="thirdcut"
                                                title="%{#date.monthname} 13-18"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fourthcut"
                                                index="fourthcut"
                                                title="%{#date.monthname} 19-24"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fifthcut"
                                                index="fifthcut"
                                                title="%{#date.monthname} 25-END"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="totalperarea"
                                                index="totalperarea"
                                                title="Total"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />
                            </sjg:grid>
                            <hr/>
                            <s:url action="grid-monthperf" id="remoteurlforod" escapeAmp="false">
                                <s:param name="month" value="%{#parameters.month}"/>
                                <s:param name="year" value="%{#parameters.year}"/>
                                <s:param name="branchid" value="%{#parameters.branch}"/>
                                <s:param name="type">OD</s:param>
                            </s:url>
                            <sjg:grid
                                id="odGrid"
                                caption="%{#br.branchname} Overdue Rating for %{#date.monthname} %{#parameters.year}"
                                dataType="json"
                                href="%{remoteurlforod}"
                                gridModel="gridModel"
                                pagerButtons="true"
                                pagerInput="true"
                                scroll="true"
                                rowNum="-1"
                                loadingText="Requesting Data..."
                                width="930"
                                shrinkToFit="true"
                                pager="true"
                                hoverrows="true"
                                rownumbers="true"
                                autoencode="true"
                                viewrecords="true"
                                navigator="true"
                                navigatorAdd="false"
                                navigatorDelete="false"
                                navigatorEdit="false"
                                navigatorSearch="true"
                                navigatorView="true"
                                >

                                <sjg:gridColumn name="areacode"
                                                index="areacode"
                                                title="Area"
                                                searchoptions="{sopt:['eq']}"
                                                sortable="true"
                                                search="true"
                                                align="center"
                                                />
                                <sjg:gridColumn name="firstcut"
                                                index="firstcut"
                                                title="%{#date.monthname} 1-6"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="secondcut"
                                                index="secondcut"
                                                title="%{#date.monthname} 7-12"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="thirdcut"
                                                index="thirdcut"
                                                title="%{#date.monthname} 13-18"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fourthcut"
                                                index="fourthcut"
                                                title="%{#date.monthname} 19-24"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="fifthcut"
                                                index="fifthcut"
                                                title="%{#date.monthname} 25-END"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />

                                <sjg:gridColumn name="totalperarea"
                                                index="totalperarea"
                                                title="Total"
                                                sortable="true"
                                                formatter="currency"
                                                search="false"
                                                align="center"
                                                />
                            </sjg:grid>
                        </s:if>
                    </s:else>
                </s:div>
            </s:div>
            <jsp:include page="WEB-INF/fragments/bottom.jsp"/>
        </s:div>
    </body>
</html>
